package com.itheima.util;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/*
* 封装配置文件中一组配置信息的实体对象
*
* */
@Data
//ioc 容器
@Component
//@ConfigurationProperties 注解：从配置文件中application，yml中一次性解析一组指定的配置信息
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliOssProperties {
    private String endpoint;
    private String accessId;
    private String accsessKey;
    private String bucketName;
}
